﻿using System;
using System.Collections.Generic;
using System.Text;

namespace com.crawler.common
{
    public class BookInfo
    {
        /// <summary>
        /// ID
        /// </summary>
        public long BookId { get; set; }

        /// <summary>
        /// 小说名称
        /// </summary>
        public string BookName { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        public string AuthorName { get; set; }

        /// <summary>
        /// 大类
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 小类
        /// </summary>
        public string SubCategoryName { get; set; }

        /// <summary>
        /// 封面路径
        /// </summary>
        public string ICONUrl { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 章节列表地址
        /// </summary>
        public string ChapterListUrl { get; set; }

        /// <summary>
        /// 最新章节Id
        /// </summary>
        public long LastUpdateChapterId { get; set; }

        /// <summary>
        /// 最新章节名称
        /// </summary>
        public string LastUpdateChapterName { get; set; }

        /// <summary>
        /// 最新更新时间
        /// </summary>
        public DateTime LastUpdateChapterTime { get; set; }

        /// <summary>
        /// 站点ID
        /// </summary>
        public int SiteId { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        public string SiteName { get; set; }

        /// <summary>
        /// 章节数量
        /// </summary>
        public int ChapterCount { get; set; }

        public string Status { get; set; }

        /// <summary>
        /// 是否 VIP
        /// </summary>
        public bool IsVIP { get; set; }

        public override string ToString()
        {
            return string.Format("bookName：{0}，AuthorName：{1}，CategoryName：{2}，SubCategoryName：{3}，ICONUrl：{4}，Description：{5}，ChapterListUrl：{6}",
                BookName, AuthorName, CategoryName, SubCategoryName, ICONUrl, Description, ChapterListUrl);
        }
    }
}
